<template>
  <div class="main">
    <!-- 返回按钮 -->
    <div class="back" @click="back">
      〈返回
      <!-- <router-link to="/login" style="color:#2a7abb">〈返回</router-link> -->
    </div>
    <!-- 注册框 -->
    <div class="register">
      <!-- 注册框内部 -->
      <div class="register-in">
        <div class="title">校 园 帮</div>
        <input type="username" class="input" placeholder="用户名" v-model="username" />
        <input type="username" class="input" placeholder="手机号" v-model="phone" />
        <input type="username" class="input" placeholder="学号" v-model="StudentID" />
        <input type="password" class="input" placeholder="密码" v-model="password" />
        <input type="username" class="input" placeholder="确认密码" v-model="rePassword" />
      </div>
      <div>
        <!-- 注册按钮 -->
        <el-button type="primary" v-on:click="register" class="btn-register">注册</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'register',
  data () {
    return {
      username: '',
      phone: '',
      StudentID: '',
      password: '',
      rePassword: ''
    }
  },
  methods: {
    register () {

    },
    back () {
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>
.main {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background-color: #efefef;
}
.back {
  float: left;
  margin: 0.8rem 0 0 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.8;
  /* color: #409EFF; */
  color: #2f88d1;
}
.register {
  background-color: #fff;
  width: 420px;
  height: 520px;
  /* 绝对定位 设置登录框居中 */
  position: absolute;
  margin: auto;
  left: 0;
  top: 0;
  bottom: 4rem;
  right: 0;
  /* 虚化属性 */
  opacity: 0.8;
  /* 阴影效果 */
  box-shadow: 5px 5px 10px #888888;
  /* margin: 0rem,auto; */
  background-color: #ffffff;
  text-align: center;
  /* 圆角 */
  border-radius: 30px;
}
.register-in {
  display: flex;
  flex-flow: column;
  width: 60%;
  margin: auto;
}
.title {
  font-size: 28px;
  /* color: #374760; */
  margin: 35px 0 35px;
}
.input {
  width: 240px;
  height: 30px;
  margin: 0 auto 25px;
  /* border-radius: 5px; */
  text-align: left;
  font-size: 14px;
  padding-left: 10px;
}
.btn-register {
  width: 254px;
  height: 40px;
  margin-top: 10px;
  /* background-color: #409EFF */
}
</style>
